package com.base.cn.platform.os.service.manage.planTools;

import com.base.cn.platform.os.entity.planTools.PopupSloganDetail;
import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 弹窗广告记录Service
 *
 * @author lxr
 * @create 2020-06-28 18:44
 */
@FeignClient(name = BaseService.appName, configuration = FeignAuthConfig.class)
public interface PopupSloganDetailService extends BaseService {

    /**
     * 获取记录
     * @param whereSql
     * @return
     */
    @RequestMapping(contextPath + "/finBySql")
    List<PopupSloganDetail> finBySql(@RequestParam("whereSql") String whereSql);

    /**
     * 保存
     * @param popupSlogan
     * @return
     */
    @RequestMapping(contextPath + "/savePopupSloganDetail")
    BigDecimal savePopupSloganDetail(@RequestBody Map<String, Object> popupSlogan);

    /**
     * 修改点击
     * @param id
     */
    @RequestMapping(contextPath + "/updateClick")
    void updateClick(@RequestParam("id") BigDecimal id);

}
